package com.ctg.payroll2.service.workflow;

import java.sql.SQLException;
import java.util.List;

import com.ctg.payroll2.bean.ComboData;
import com.ctg.payroll2.bean.filter.WorkflowAccountFilter;
import com.ctg.payroll2.bean.po.SysUser;
import com.ctg.payroll2.bean.po.workflow.FlowUser;
import com.ctg.platform.core.security.Exception.SecurityException;
import com.ctg.platform.util.Page;

public interface WorkflowAccountService {
	/**
	 * 新增流程用户
	 * @param user 流程用户
	 * @return 主键
	 */
	Long insertFlowUser(FlowUser user, SysUser currentUser) throws SecurityException, SQLException;
	/**
	 * 根据以逗号分隔的id删除流程用户
	 * @param ids 逗号分隔的id
	 * @return 影响的数量
	 */
	int deleteFlowUserByIds(String ids, SysUser currentUser) throws SQLException;
	/**
	 * 更新流程用户
	 * @param user 流程用户
	 * @return 影响的数量
	 */
	int updateFlowUser(FlowUser user) throws SQLException;
	/**
	 * 翻页查询
	 * @param filter
	 * @return
	 */
	Page queryFlowUserByFilter(WorkflowAccountFilter filter);
	
	List<ComboData> queryFlowOrgchartComb() throws SQLException;
}
